package com.cys.dm.client.item;

import com.cys.dm.entity.item.DmItemComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "dm-item-provider")
@Component
public interface DmItemCommentClient {
    @PostMapping(path = "/findAllByItemId")
    public List<DmItemComment> findAllByItemId(@RequestParam Long itemId);

    @PostMapping(path = "/commitItemComment")
    public int commitItemComment(@RequestParam Map<String,Object> params);
}
